don't click here

Make TSC directives a global variable.


    Print

Author Topic: Make TSC directives a global variable.  (Read 7247 times)

0 Members and 2 Guests are viewing this topic.

Offline GerbilSoft

  • Architect of the Matrix
  • TSC Profile
  • linux firefox
  • Posts: 719
  • RickRotate'd.
    • View Profile
Make TSC directives a global variable.
« on: December 05, 2007, 08:59:24 am »
Currently, all the functions using the TSC directives array pass it by value and then return a new copy of said array. This wastes memory and is slow. Instead, the directives array should be a global variable. (Passing by reference is also a good idea, but since this array is used by everything, it should be global instead.)

More optimization tips are available at http://atomized.org/2005/04/php-performance-best-practices/ and http://www.php.lt/benchmark/phpbench.php .
« Last Edit: December 05, 2007, 10:42:45 am by GerbilSoft »

    Print
 


-- Back to Normal Skin --
Hits: 82 | Hits This Month: 5 | DB Calls: 5 | Mem Usage: 1.00 MB | Time: 0.08s | Printable

The Sonic Center v3.9
Copyright 2003-2011 by The Sonic Center Team.